package cn.itsource.pethome.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Title: ${file_name}
 * @Package:${package_name}
 * @Description:(作用)
 * @author:chenhang
 * @date:${date}
 * @version:V1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery{
    public Integer currentPage = 1;
    public Integer pageSize = 10;

    public Integer getBegin(){
        return (this.currentPage - 1) * pageSize;
    }
}
